package org.okcjug.december.comparator;

import java.util.Comparator;

import org.okcjug.december.model.Movie;

public class LargestMovieTitleComparator implements Comparator<Movie>{

	public int compare(Movie o1, Movie o2) {
		String o1Movie = o1.getMovie().trim();
		String o2Movie = o2.getMovie().trim();
		return o1Movie.length() - o2Movie.length();
	}	
}